﻿<UserControl x:Class="PDOGenerator.Views.ProjectView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    MinHeight="200" MinWidth="300" >
    <Grid>
        <Grid.Resources>
            <Style TargetType="TextBox" >
                <Setter Property="Margin" Value="2,2,2,2" />
            </Style>
            <Style TargetType="TextBlock" >
                <Setter Property="Margin" Value="2,2,2,2" />
            </Style>
            <Style TargetType="CheckBox" >
                <Setter Property="Margin" Value="2,4,2,2" />
            </Style>
        </Grid.Resources>
        <ScrollViewer>
            <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" >
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock >Project Name:</TextBlock>
                    <TextBox Grid.Column="1" Text="{Binding Path=ProjectName}" />
                </Grid>


                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Connection String:"/>
                    <TextBox Grid.Column="1" Text="{Binding Path=ConnectionString}"  />
                </Grid>
               
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Output directory:" />
                    <TextBox Grid.Column="1" Text="{Binding Path=OutputDirectory}" />
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Default Schema Name:" />
                    <TextBox Grid.Column="1" Text="{Binding Path=DefaultSchemaName}" />
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Baseclass Name:" />
                    <TextBox Grid.Column="1" Text="{Binding Path=BaseClassName}" />
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Base Namespace:" />
                    <TextBox Grid.Column="1" Text="{Binding Path=NameSpace}" />
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Stored Proc Prefix:" />
                    <TextBox Grid.Column="1"  Text="{Binding Path=StoredProcPrefix}" />
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="150"/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Using Directives:" />
                    <TextBox Grid.Column="1" Text="{Binding Path=UsingDirectives}" Height="100" AcceptsReturn="True"/>
                </Grid>

            </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
